﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using V5_Model;
using V5_BLL;
using V5_Common;

namespace V5_EShop.Admin {
    public partial class Admin_Index_Top : BasicPage {
        protected string AdminName = string.Empty;
        protected string AdminID = string.Empty;
        protected void Page_Load(object sender, EventArgs e) {
            HttpCookie cookie1 = Request.Cookies["adminid"];
            if (cookie1 != null) {
                ModelAdmin model = new BLLAdmin().GetModel(InputHelper.SetNumber(cookie1.Value));
                if (model != null) {
                    AdminName = model.AdminName;
                    AdminID = model.ID.ToString();
                }
            }
        }

        protected void lbtnClearCache_Click(object sender, EventArgs e) {
            DataCacheHelper.RemoveAllCache();
        }
    }
}
